-- cmd_gain_pet
-- Create by panyl
-- 激活(获取)宠物

function Operation.cmd_gain_pet(classId)
    --记录起来，需要进行同步
    local v = { ["class_id"] = classId, };
    SyncM.addMessage("CMD_GAIN_PET", v);
    SyncM.startSync();

    -- 客户端自行激活宠物
    PetM.gainPet(classId);
end